package F.树;

public class _剑指Offer27_二叉树的镜像 {

    public TreeNode mirrorTree(TreeNode root) {

        if (root == null){
            return null;
        }


        TreeNode left= mirrorTree(root.left);
        TreeNode right= mirrorTree(root.right);

        TreeNode node = left;
        root.left = right;
        root.right = node;

        return root;
    }
}
